<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>RW_b2c-tradequery</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	

	<style  type="text/css">
			@import "./css/shop/header.css";
			@import "./css/shop/tradequery.css";
	</style>
	

	
	<script language="javascript" type="text/javascript" src="javascript/checkTools.js">
	</script>
	<script language="javascript" type="text/javascript" src="javascript/MulitiEffect.js">
	</script>
	<script language="javascript" type="text/javascript" src="javascript/shop/tradequery.js">
	</script>
	
 

  </head>
  
  <body>
  
     <jsp:include flush="true" page="header.jsp"></jsp:include>
     
     
     <div class="tradequeryFrame">
     	<h2>历史交易查询</h2>
		<form  id ="tradequeryForm" method="post" onsubmit="return checktTadeQueryTime()">
	     	<table class="tradequeryTable" border="0" align="center">
	     		<tr>
	     			<td>
					  <b>请选择交易时间</b>
					</td>
					<td>
					   <select id="querystartyear" name="querystartyear">
						  <%
						  	
						  	Date date = new Date();
						  	int year = date.getYear();
						  	int currentyear = year + 1900;
						  	
						  	for(year = 2010; year <= currentyear;year ++){
						  	%>
						  		<option value="<%=year%>"><%=year%></option>
						  	<% 
						  	} 
						  %>
						</select><a>年</a>
						
						<select id="querystartmonth" name="querystartmonth">
					   	  <%
					   	  	int mon = 1;
					   	  	for( mon = 1;mon <= 12;mon++){
					   	  	%>
					   	  		<option value ="<%=mon%>"><%=mon%></option>
					   	  		<% 
					   	  	}
					   	  %>
						</select><a>月</a>
						
						<input type="text" id="querystartday" name="querystartday" Style="width:30px" maxlength="2" value="1" onblur="checkday('querystartyear','querystartmonth',this);"/>
						<a>日</a>

					</td>
	     		</tr>
	     		<tr>
	     			<td>
					  <b>请选择结束时间</b>
					</td>
					<td>
					   <select id="querystopyear" name="querystopyear">
						  <%
						  	
						  	//Date date = new Date();
						  	//int year = date.getYear();
						  	//int currentyear = year + 1900;
						  	
						  	for(year = 2010; year <= currentyear;year ++){
						  	%>
						  		<option value="<%=year%>"><%=year%></option>
						  	<% 
						  	} 
						  %>
						</select><a>年</a>
						
						<select id="querystopmonth" name="querystopmonth">
					   	  <%
					   	  	//int mon = 1;
					   	  	for( mon = 1;mon <= 12;mon++){
					   	  	%>
					   	  		<option value ="<%=mon%>"><%=mon%></option>
					   	  		<% 
					   	  	}
					   	  %>
						</select><a>月</a>
						
						<input type="text" id="querystopday" name="querystopday" Style="width:30px" maxlength="2" value="1" 
											onblur="checkday('querystopyear','querystopmonth',this);"/>
						<a>日</a>

					</td>
	     		</tr>
	     		<tr>
	     			<td>
					  <b>请选择订单状态</b>
					</td>
					<td>
					   <select id="orderstate" name="orderstate">					   	  
					   	  	<option value ="0">所有</option>
					   	  	<option value ="1">未支付</option>
					   	  	<option value ="2">已支付</option>										   	  
						</select>
					</td>
	     		</tr>
	     		
	     		<%if(session.getAttribute("UserState")!=null){%>
	     		<tr>
			  	<td align="right"><input type="image"  src="./images/src/button/query.png" onclick="tradequeryForm.action='orderQueryAction';"/>
			  	
	     		</tr>
	     		<%}else{ %>
	     		<tr>
	     			<td ><font color=#FF0000 >请先登录后再查询</font></td>
					</tr>
	     		<%} %>
	     	</table>
	     </form>
     </div>
     
     
     <jsp:include page="footer.jsp" flush="true"></jsp:include>
  </body>
</html>
